﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Capacitacion.Models
{
    public class Review
    {
        public int Id { get; set; }

        [Required]
        public string Restaurant { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        public DateTime Created { get; set; }

        [Required]
        [Range(1, 10)]
        public int Rating { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        public string Comment { get; set; }
    }
}